package com.ruoyi.wb.mapper;

import com.ruoyi.wb.domain.WbMasterEnter;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 师傅入驻Mapper接口
 * 
 * @author ruoyi
 * @date 2024-10-14
 */
public interface WbMasterEnterMapper 
{
    /**
     * 查询师傅入驻
     * 
     * @param id 师傅入驻主键
     * @return 师傅入驻
     */
    public WbMasterEnter selectWbMasterEnterById(Long id);

    /**
     * 查询师傅入驻
     *
     * @param userId 师傅id
     * @return 师傅入驻
     */
    public WbMasterEnter selectWbMasterEnterByUserId(Long userId);


    /**
     * 查询师傅入驻列表
     * 
     * @param wbMasterEnter 师傅入驻
     * @return 师傅入驻集合
     */
    public List<WbMasterEnter> selectWbMasterEnterList(WbMasterEnter wbMasterEnter);

    /**
     * 新增师傅入驻
     * 
     * @param wbMasterEnter 师傅入驻
     * @return 结果
     */
    public int insertWbMasterEnter(WbMasterEnter wbMasterEnter);

    /**
     * 修改师傅入驻
     * 
     * @param wbMasterEnter 师傅入驻
     * @return 结果
     */
    public int updateWbMasterEnter(WbMasterEnter wbMasterEnter);

    /**
     * 删除师傅入驻
     * 
     * @param id 师傅入驻主键
     * @return 结果
     */
    public int deleteWbMasterEnterById(Long id);

    /**
     * 批量删除师傅入驻
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteWbMasterEnterByIds(Long[] ids);


    WbMasterEnter byUser (@Param("userId") Long userId);
}
